/**
 * alertMsg 对artDialog的简单封装
 */

function simAlert(content,title,type){
	if(type)type='warning';
	if(type=="info"||type=="warn")type='warning';
	if(title)title="提示";
	dialog({
	    title:title,
	    content:content,
	    ok: function () {}
	}).show();
}

function confirm(content,title,ok_function){
	if(title)title="提示";
	art.dialog({
		title:title,
	    content: content,
	    ok: function () {
	    	ok_function();
	    },
	    cancelVal: '关闭',
	    cancel: true //为true等价于function(){}
	});
}

